package com.tcmj.dining.service;

import java.util.List;
import com.tcmj.dining.domain.TzVagetablesOrder;

/**
 * 点餐Service接口
 * 
 * @author tcmj
 * @date 2020-05-17
 */
public interface ITzVagetablesOrderService 
{
    /**
     * 查询点餐
     * 
     * @param orderId 点餐ID
     * @return 点餐
     */
    public TzVagetablesOrder selectTzVagetablesOrderById(Long orderId);

    /**
     * 查询点餐列表
     * 
     * @param tzVagetablesOrder 点餐
     * @return 点餐集合
     */
    public List<TzVagetablesOrder> selectTzVagetablesOrderList(TzVagetablesOrder tzVagetablesOrder);

    /**
     * 新增点餐
     * 
     * @param tzVagetablesOrder 点餐
     * @return 结果
     */
    public int insertTzVagetablesOrder(TzVagetablesOrder tzVagetablesOrder);

    /**
     * 修改点餐
     * 
     * @param tzVagetablesOrder 点餐
     * @return 结果
     */
    public int updateTzVagetablesOrder(TzVagetablesOrder tzVagetablesOrder);

    /**
     * 批量删除点餐
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTzVagetablesOrderByIds(String ids);

    /**
     * 删除点餐信息
     * 
     * @param orderId 点餐ID
     * @return 结果
     */
    public int deleteTzVagetablesOrderById(Long orderId);
    
    
    /**
     * 删除点餐信息
     * @param userId
     * @return
     */
    public int deleteTzVagetablesOrderByUserId(Long userId);
    
    /**
     * 根据用户id获取订单对象
     * 
     * @param userId
     * @return
     */
    public List<TzVagetablesOrder> selectTzVagetablesByUserId(Long userId);
}
